package org.jeecg.modules.scm.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.scm.entity.ScmReceivablesInvoice;
import org.jeecg.modules.scm.mapper.ScmReceivablesInvoiceMapper;
import org.jeecg.modules.scm.service.IScmReceivablesInvoiceService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: scm_receivables_invoice
 * @Author: jeecg-boot
 * @Date: 2021-11-03
 * @Version: V1.0
 */
@Service
public class ScmReceivablesInvoiceServiceImpl extends ServiceImpl<ScmReceivablesInvoiceMapper, ScmReceivablesInvoice> implements IScmReceivablesInvoiceService {

    @Override
    public List<ScmReceivablesInvoice> getByReceivableId(Integer receivableId) {

        return lambdaQuery().eq(ScmReceivablesInvoice::getReceivablesId, receivableId).list();
    }
}
